import App from './App'
import Http from './utils/http.js';
import Api from './api.js';
import Sun from './common/js/sunui.js';
import MescrollEmpty from './components/mescroll-uni/components/mescroll-empty.vue';
import Mixin from './components/mescroll-uni/mescroll-mixins.js';
import MescrollBody from '@/components/mescroll-uni/mescroll-body.vue';
import MescrollUni from '@/components/mescroll-uni/mescroll-uni.vue';


// import tabBar from "@/components/tabbarList/tabbarList.vue"

Vue.mixin(Mixin);
// Vue.component('tabBar',tabBar)
Vue.component('mescroll-empty', MescrollEmpty);
Vue.component('mescroll-body', MescrollBody);
Vue.component('mescroll-uni', MescrollUni);
// 调用接口
Vue.prototype.$api = Api.api;
Vue.prototype.$imgs = Api.img;
// 封装调用方式
Vue.prototype.$http = Http;
Vue.prototype.$sun = Sun;

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif